<%@ page language="java" pageEncoding="UTF-8"%><%
if(!request.getMethod().equalsIgnoreCase("POST")){
	response.sendError(404);
	return;
}
%><!DOCTYPE html>
<html>
	<head>
		<title>系统注册</title>
		<jsp:include page="head.jsp"/>
		<script type="text/javascript" src="index.js"></script>
	</head>

	<body>
		<form autocomplete="off" class="animated form-horizontal" style="width: 550px; display: none; position: absolute; z-index: 1; box-shadow: 0 0 20px rgba(0,0,0,0.4); border-radius: 9px;overflow: hidden;">
			
			<div class="panel panel-default" style="margin: 0;">
				<div class="panel-heading">软件注册 - 获取CD-KEY</div>
				<div class="panel-body">
					<input type="hidden" name="softId" value="${param.id}" />
					<input type="hidden" name="regMac" value="${param.key}" />
					<div class="form-group">
						<label class="col-sm-3 control-label">单位/个人</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="regName" required="required" pattern="^.{2,20}$" placeholder="请输入您所在单位">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">理由/用途</label>
						<div class="col-sm-9">
							<textarea style="width: 100%; height: 5em;" class="form-control" name="regExplain" required="required" maxlength="200" placeholder="请输入20个字符以上的理由"></textarea>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">手机号码</label>
						<div class="col-sm-4">
							<input type="tel" class="form-control" name="regTel" required="required" pattern="^\d{11}$" placeholder="请输入11位的手机号码">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">手机验证码</label>
						<div class="col-sm-3">
							<input type="text" class="form-control" name="code" required="required" pattern="^\d{6}$" placeholder="6位的验证码">
						</div>
						<div class="col-sm-2">
							<button type="button" id="send" class="btn btn-default">发送手机验证码</button>
						</div>
					</div>

					<div class="form-group">

						<div class="col-sm-2 col-sm-offset-3">
							<button class="btn btn-primary btn-lg">获取CD-KEY</button>
						</div>
					</div>
				</div>
			</div>
		</form>

		<div class="animated panel panel-default" style="width: 300px; top:1em; right: 1em; position: fixed; z-index: 2; box-shadow: 0 0 20px rgba(0,0,0,0.4); border-radius: 9px; overflow: hidden; display: none;">
			<div class="panel-heading">请作者喝杯咖啡</div>
			<div class="panel-body"><img style="width: 100%;" src="imgs/wx.png" />
			</div>
		</div>
		
		
		
		<form autocomplete="off" class="animated form-horizontal" style="width: 550px; display: none; position: absolute; z-index: 1; box-shadow: 0 0 20px rgba(0,0,0,0.4); border-radius: 9px;overflow: hidden;">
			
			<div class="panel panel-default" style="margin: 0;">
				<div class="panel-heading">软件注册成功</div>
				<div class="panel-body">
					<div class="alert alert-danger alert-dismissible" role="alert">
					  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					  <strong>提醒：</strong> 请记录下面相关信息
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">软件</label>
						<div class="col-sm-9 ">
							<input type="text" class="form-control" name="softName" readonly="readonly">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">单位/个人</label>
						<div class="col-sm-9 ">
							<input type="text" class="form-control" name="regName" readonly="readonly">
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">手机号码</label>
						<div class="col-sm-4 ">
							<input type="text" class="form-control" name="regTel" readonly="readonly">
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">序列号</label>
						<div class="col-sm-9 ">
							<textarea name="regNum" style="width: 100%; height: 5em; word-wrap:break-word;" class="form-control" readonly="readonly"></textarea>
						</div>
					</div>
				</div>
			</div>
		</form>
		
	</body>

</html>